<script>
export default {
  onLaunch: function() {
    console.log('App Launch');
  },
  onShow: function() {
    console.log('App Show');
  },
  onHide: function() {
    console.log('App Hide');
  }
}
</script>

<style lang="scss">
/* 全局样式将使用全局additionalData添加的vars命名空间 */

/* 全局样式 */
page {
  background-color: #f7f7f7;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

/* Tailwind 相关类 */
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-sm { font-size: 28rpx; }
.text-base { font-size: 32rpx; }
.text-lg { font-size: 36rpx; }
.text-xl { font-size: 40rpx; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.text-white { color: #ffffff; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-green-500 { color: vars.$primary-color; }
.bg-white { background-color: #ffffff; }
.bg-green-500 { background-color: vars.$primary-color; }
.mb-3 { margin-bottom: 24rpx; }
.mb-4 { margin-bottom: 32rpx; }
.mt-1 { margin-top: 8rpx; }
.mt-2 { margin-top: 16rpx; }
.mr-2 { margin-right: 16rpx; }
.mr-3 { margin-right: 24rpx; }
.ml-1 { margin-left: 8rpx; }
.ml-2 { margin-left: 16rpx; }
.mx-3 { margin-left: 24rpx; margin-right: 24rpx; }
.p-4 { padding: 32rpx; }
.px-4 { padding-left: 32rpx; padding-right: 32rpx; }
.py-3 { padding-top: 24rpx; padding-bottom: 24rpx; }
.rounded-lg { border-radius: 16rpx; }
.rounded-xl { border-radius: 24rpx; }
.rounded-full { border-radius: 999rpx; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-16 { width: 128rpx; }
.h-16 { height: 128rpx; }
.h-48 { height: 384rpx; }
.relative { position: relative; }
.absolute { position: absolute; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-100 { z-index: 100; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.opacity-80 { opacity: 0.8; }
.block { display: block; }
.border-t { border-top-width: 1px; }
.border-gray-100 { border-color: #f3f4f6; }

/* 渐变背景 */
.bg-gradient-to-t {
  background-image: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
}
</style>
